﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace MarginTrading.Entity
{
    public class MarginStatus
    {
        #region public methods
        /// <summary>
        /// default constructor of MarginStatus. 
        /// </summary>
        public MarginStatus()
        {
            this.MarginDate = DateTime.MinValue;
            this.ClientCode = string.Empty;
            this.Agent = string.Empty;
            this.Advisor = string.Empty;
            this.ClientName = string.Empty;
            this.FacilityApproved = 0;
            this.PortfolioValue = 0;
            this.LoanBalance = 0;
            this.NetFutureBal = 0;
            this.PendingInterest = 0;
        }

        #endregion

        #region property

        public DateTime MarginDate { get; set; }
        public string ClientCode { get; set; }
        public string Agent { get; set; }
        public string Advisor { get; set; }
        public string ClientName { get; set; }
        public double FacilityApproved { get; set; }
        public double PortfolioValue { get; set; }
        public double LoanBalance { get; set; }
        public double NetFutureBal { get; set; }
        public double PendingInterest { get; set; }

        #endregion
    }

    public class MarginStatusCollection : Collection<MarginStatus>
    {
        public MarginStatusCollection()
        {
        }
    }
}
